import WebSocket = require("ws");

let idMaker = 0;

export class PlayerData {
  id: number = ++idMaker;
  name: string = "";
  positionSeed: number = Math.random();
  ws: WebSocket;
  ready: boolean = false;

  toInitData() {
    return {
      id: this.id,
      name: this.name,
      positionSeed: this.positionSeed,
    };
  }
}
